package game;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class OggFileFilter extends FileFilter{
	protected FileExtension t;
	
	
	public boolean accept(File f) {
		t = new FileExtension();
	    if (f.isDirectory()) {
	        return true;
	    }
	    String extension = t.getExtension(f);
	    if (extension != null) {
	        if (extension.equals(FileExtension.ogg))
	        		return true;
	         else 
	            return false;
	    }

	    return false;
	}
	
	public String getDescription(){
		return "Ogg File (.ogg)";
	}
}
